/*
Copyright (C) 1997-2001 Id Software, Inc.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

// Created on 09.12.2003 by RST.
// $Id: moveclip_t.java,v 1.2 2005/01/14 16:14:02 cawe Exp $
using System;
using Suake2.UI;
using Suake2.UI.client;
using Suake2.UI.game;
using Suake2.UI.qcommon;
using Suake2.UI.render;
using Suake2.UI.server;
using Math3D = Suake2.UI.util.Math3D;
namespace Suake2.UI.server
{
	
	public class moveclip_t
	{
		internal float[] boxmins = new float[]{0, 0, 0}, boxmaxs = new float[]{0, 0, 0}; // enclose the test object along entire move
		internal float[] mins, maxs; // size of the moving object
		internal float[] mins2 = new float[]{0, 0, 0}, maxs2 = new float[]{0, 0, 0}; // size when clipping against mosnters
		internal float[] start, end;
		// mem
		internal trace_t trace = new trace_t();
		internal edict_t passedict;
		internal int contentmask;
		
		public virtual void  clear()
		{
			Math3D.VectorClear(boxmins);
			Math3D.VectorClear(boxmaxs);
			Math3D.VectorClear(mins);
			Math3D.VectorClear(maxs);
			Math3D.VectorClear(mins2);
			Math3D.VectorClear(maxs2);
			start = end = null;
			trace.clear();
			passedict = null;
			contentmask = 0;
		}
	}
}